import { Component, Input, OnInit } from "@angular/core";
import { Pedge } from "src/app/@types/pedge";
import { PnodeType } from "src/app/@types/pnode";

@Component({
    selector: "process-canvas",
    templateUrl: "./process-canvas.component.html",
})
export class ProcessCanvasComponent implements OnInit {
    /** 节点 */
    @Input() nodes: any;

    @Input() renderPnodes: any;

    /** 边 */
    @Input() edges: Pedge[] = [];

    @Input() xWidth = 200;
    @Input() yWidth = 180;

    nodeType: typeof PnodeType = PnodeType;

    constructor() {}

    ngOnInit(): void {}
}
